<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/



Auth::routes();

Route::get('/', 'ProjectsController@index');
Route::get('/home', 'HomeController@index')->name('home');

Route::post('/projects', 'ProjectsController@store')->name('project.store');
Route::delete('/projects/{project}', 'ProjectsController@destroy')->name('projects.destroy');
Route::patch('/projects/{project}', 'ProjectsController@update')->name('projects.update');
Route::get('/projects/{project}', 'ProjectsController@show')->name('projects.show');


Route::resource('tasks', 'TasksController');